<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Maven FileSync Plugin - </title>
    <style type="text/css" media="all">
      @import url("../css/maven-base.css");
      @import url("../css/maven-theme.css");
      @import url("../css/site.css");
    </style>
    <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
          </head>
  <body class="composite">
    <div id="banner">
                    <span id="bannerLeft">
    
            Maven FileSync Plugin
    
            </span>
                    <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2010-10-26
                      </div>
            <div class="xright">      
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>Overview</h5>
            <ul>
              
    <li class="none">
                    <a href="../index.html">Introduction</a>
          </li>
              
    <li class="none">
                    <a href="../plugin-info.html">Goals</a>
          </li>
              
    <li class="none">
                    <a href="../usage.html">Usage</a>
          </li>
              
    <li class="none">
                    <a href="../faq.html">FAQ</a>
          </li>
          </ul>
              <h5>Examples</h5>
            <ul>
              
    <li class="none">
              <strong>Example with fully defined mapping</strong>
        </li>
              
    <li class="none">
                    <a href="../examples/example-two.html">Minimal configuration</a>
          </li>
              
    <li class="none">
                    <a href="../examples/example-three.html">Command line invocation</a>
          </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>Minimal configuration</h2>
<div class="source"><pre>  &lt;plugin&gt;
    &lt;groupId&gt;com.google.code.filesync&lt;/groupId&gt;
    &lt;artifactId&gt;maven-filesync-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;goals&gt; 
          &lt;goal&gt;generate&lt;/goal&gt;
        &lt;/goals&gt;
        &lt;configuration&gt;
          &lt;defaultDestination&gt;/home/john/tomcat/webapps/myapp&lt;/defaultDestination&gt;
          &lt;mappings&gt;
            &lt;mapping&gt;
              &lt;sourceFolder&gt;target/classes&lt;/sourceFolder&gt;
            &lt;/mapping&gt;
          &lt;/mappings&gt;
        &lt;/configuration&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;</pre>
</div>
<p>You should provide a default destination and at least one mapping with project relative source folder. It is possible to skip the default destination and declare a destination per mapping instead. Refer to the <a href="http://andrei.gmxhome.de/filesync/usage.html" class="externalLink">mappping format specification</a> for more information.</p>
<p>The execution defined here will be bound to maven lifecycle initialize phase as this is the default binding phase for the maven-filesync-plugin. See the <a href="http://maven.apache.org/guides/mini/guide-configuring-plugins.html" class="externalLink">maven guide to configuring plugins</a> for more details.</p>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2010
    
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
